﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YwhLib
{
    /// <summary>
    /// 单元
    /// </summary>
    [FreeSql.DataAnnotations.Index("unit_phaseno_buildingno_unitno", "PhaseNo,BuildingNo,UnitNo", true)]
    public class Unit
    {
        /// <summary>
        /// 期号
        /// </summary>
        public int PhaseNo { get; set; }

        /// <summary>
        /// 楼号
        /// </summary>
        public int BuildingNo { get; set; }

        /// <summary>
        /// 楼号字符
        /// </summary>
        [FreeSql.DataAnnotations.Column(IsIgnore = true)]
        public string BuildingNoS { get { return UnitNo.ToString(); } }

        /// <summary>
        /// 单元
        /// </summary>
        public int UnitNo { get; set; }

        /// <summary>
        /// 单元号字符
        /// </summary>
        [FreeSql.DataAnnotations.Column(IsIgnore =true)]
        public string UnitNoS { get{ return UnitNo.ToString(); } }

        /// <summary>
        /// 楼层数
        /// </summary>
        public int FloorNum { get; set; }

        /// <summary>
        /// 每层房间数
        /// </summary>
        public int RoomsPerFloor { get; set; }

        /// <summary>
        /// 户型面积，从01开始以,间隔
        /// </summary>
        public string RoomArea { get; set; }
    }
}
